﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace MvcEngine.Mvc.Results
{
    public class TextActionResult : ActionResult
    {
        public string Text { get; set; }

        public TextActionResult(string text)
        {
            this.Text = text;
        }

        public override void ExecuteResult(ControllerContext context)
        {
            context.HttpContext.Response.Write(Text);
            context.HttpContext.Response.End();
        }
    }
}
